package com.yudongyang.util;

import java.util.Date;

public class Cunhuo {
//计算存活时间
	public static Integer cunhuo(Date diagnosed) {
		int cunhuo = 1;
		
		if(diagnosed != null) {
			Date date = new Date();
			int year = date.getYear();
			int year2 = diagnosed.getYear();
			cunhuo+=year-year2;
		}
	
		
		return cunhuo;
	}
}
